import { DateTransformer } from './../utils/dateTransformer';
import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn } from 'typeorm';
import { Exclude, Expose, Transform, Type } from 'class-transformer';
import { CommonEntity } from './common.entity';

@Entity('sys_dict')
export class SysDictEntity {
    // 将 int 类型的id转成string类型，防止前端精度缺失

    @PrimaryGeneratedColumn({ type: 'bigint' })
    id: string;

    @Column({ comment: '字典标识key',unique:true })
    dictKey: string;

    @Column({ comment: '字典名称' })
    dictKeyName: string;

    @Column({ comment: '字典描述' })
    description: string;

    @Column({ comment: '字典类型 0：系统字典  1：数据字典' })
    dictType: string;
 
    @CreateDateColumn({ precision: 0 })
    createTime: string;
}    